package Impl;

import java.util.ArrayList;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import Bean.BeanRating;
import Dao.RatingDao;
import Service.RatingService;

@Service("RatingServiceImpl")
public class RatingServiceImpl implements RatingService{
	@Resource(name="RatingDAO")
	RatingDao ratingDao;
	public void ratingadd(String userid, String bookid,int score) throws Exception {
		ratingDao.ratingadd(userid, bookid, score);
	}
	@Override
	public ArrayList<BeanRating> getratings(String userid) throws Exception {
		// TODO Auto-generated method stub
		return ratingDao.getratings(userid);
	};
}
